# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/rpc2/rpc2-2.0.ebuild,v 1.3 2007/03/27 18:48:20 armin76 Exp $

inherit git autotools

DESCRIPTION="Remote procedure call package for IP/UDP (used by Coda)"
HOMEPAGE="http://www.coda.cs.cmu.edu/"
#SRC_URI="http://www.coda.cs.cmu.edu/pub/rpc2/src/${P}.tar.gz"

EGIT_REPO_URI="git://coda.cs.cmu.edu/project/coda/dev/${PN}.git"

IUSE=""
SLOT="1"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64 ~x86"

RDEPEND="=sys-libs/lwp-9999"

DEPEND="${RDEPEND}
	sys-apps/gawk
	sys-apps/sed
	sys-apps/grep
	sys-devel/libtool"

S="${WORKDIR}/${PN}"

pkg_setup() {
	EGIT_BOOTSTRAP="bootstrap.sh"
}

src_compile() {
	econf || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "make install failed"

	dodoc NEWS README.ipv6
}
